home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Misc / Queens / Source / QueensController.h < prev    next >
Encoding:
Text File  |  1993-11-09  |  578 b   |  28 lines

  1.  
  2. #import "stdappkit.h"
  3.  
  4. @interface QueensController:Object
  5.     {
  6.     id        board;                    // matrix of squares
  7.     id        stepsDisplay;            // display counter for positions tried
  8.     id        solutionsDisplay;        // display of solutions found
  9.     id        solutionPause;            // controls whether to stop at a solution
  10.     
  11.     BOOL    running;
  12.     int        rows;
  13.     int        column[8];
  14.     }
  15.  
  16. - motor: sender;
  17. - pause: sender;
  18. - step: sender;
  19.  
  20. - (BOOL)countStep;
  21. - motorStep;
  22. - placeQueenAt: (int)row : (int)column;
  23. - removeQueenFrom: (int)aRow : (int)aColumn;
  24. - (BOOL)stepFrom: (int)aRow;
  25. - (BOOL)validate: (int)aRow : (int) aColumn;
  26.  
  27. @end
  28.